package cn.tedu.eg1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class OrderController {
    /**
     * 1.创建订单功能
     */
    @RequestMapping("/v1/orders/add")
    @ResponseBody
    public String add(){
        return "创建订单成功！";
    }

    /**
     * 2.查看订单列表
     */
    @RequestMapping("/v1/orders/list")
    @ResponseBody
    public String list(){
        return "查看订单列表成功！";
    }

    /**
     * 3.删除订单
     */
    @RequestMapping("/v1/orders/del")
    @ResponseBody
    public String del(){
        return "删除订单成功！";
    }

    /**
     * 4.修改订单
     */
    @RequestMapping("/v1/orders/update")
    @ResponseBody
    public String update(){
        return "修改订单成功！";
    }
}










